@layout("/common/_container.html"){
<!--startprint1-->
<style>#login > h2,#login > h3{letter-spacing:15px;margin-bottom:15px;}#programmeBox{display:flex;flex-direction:column;border:1px solid #666666}#programmeBox > div{border-bottom:1px solid #666666;height:155px;padding:5px;}#inputBox{display:flex;margin-bottom:15px;text-align:center}#inputBox > div{flex:1;}input{border:none;border-bottom:1px solid #999999;outline:none;width:50%;padding-left:5px;}.sign > span{display:inline-block;width:20%}.toothNone{border:none;outline:none;background:none;display:inline-block;width:50%;height:14px;}.leftUp{border-right:1px solid #666666;border-bottom:1px solid #666666;text-align:right;padding-right:4px;position:absolute}.rightUp{border-bottom:1px solid #666666;padding-left:4px;margin-left:-10px;position:absolute;right:0;}.leftDown{border-right:1px solid #666666;text-align:right;padding-right:4px;position:absolute;bottom:0;}.rightDown{padding-left:4px;margin-left:-10px;position:absolute;bottom:0;right:0;}</style>
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div>
            <div id="login" style="text-align: center">
                @if(deptInfo.simplename == '众华店'){
                <h2>湖北众华知名品牌</h2>
                @}
                @if(deptInfo.simplename != '众华店'){
                <h2>钛植口腔</h2>
                @}
                <h3>费用确认单</h3>
            </div>
            <div id="inputBox">
                <div>
                    <span>接诊：</span>
                    <input type="text" readonly="readonly" value="${payService.fieldTc}">
                </div>
                <div>
                    <span>就诊医生：</span>
                    <input type="text" readonly="readonly" value="${payService.doctor}">
                </div>
                <div>
                    <span>就诊日期：</span>
                    <input type="text" readonly="readonly" value="${payService.operationTime}">
                </div>
                <div>
                    <span>姓名：</span>
                    <input type="text" readonly="readonly" value="${payService.customerName}">
                </div>
            </div>
            <div id="programmeBox">
                <div style="height: 320px;">
                    <span>方案一：</span>
                    @for(item in payServiceInfo){
                    <div style="display: flex;height: 28px;line-height: 28px;">
                        <div style="flex: 1.2;position: relative">
                            <input readonly="readonly" class="toothNone leftUp" type="text" value="${item.leftUp}">
                            <input readonly="readonly" class="toothNone rightUp" type="text" value="${item.rightUp}">
                            <input readonly="readonly" class="toothNone leftDown" type="text" value="${item.leftDown}">
                            <input readonly="readonly" class="toothNone rightDown" type="text" value="${item.rightDown}">
                        </div>
                        <div style="flex: 3;text-indent: 1em;">
                            <span>项目：${item.payServiceName}</span>
                        </div>
                        <div style="flex: 1;">
                            <span>${item.payService}</span>
                        </div>
                        <div style="flex: 0.5">
                            <span>${item.payServiceNum}${item.unit}</span>
                        </div>
                        @if(item.isDo== 4 || item.isDo== 3){
                        <div style="flex: 1.5;">
                            <span>本次缴费：${item.serviceActualPay}</span>
                        </div>
                        @}
                        @if(item.isDo== 5){
                        <div style="flex: 1.5;">
                            <span>折后金额：${item.intFoldingPay}</span>
                        </div>
                        @}
                    </div>
                    @}
                    <div style="text-align: right;margin: 10px 50px 0 0;">
                        <span>原价：${payService.primaryAmount}</span>
                        <span style="margin-left: 30px">折后金额：${payService.foldingPay}</span>
                        <span style="margin-left: 30px">储值抵扣：${payService.depositAmount}</span>
                        <span style="margin-left: 30px">优惠抵扣：${payService.deductionAmount}</span>
                    </div>
                    <div style="text-align: right;margin: 10px 50px 0 0;">
                        <span style="margin-left: 30px">本次缴费：${payService.totleServiceActualPay}</span>
                        <span style="margin-left: 30px">本次欠费：${payService.arrears}</span>
                    </div>
                </div>
                <div>
                    <span>方案二：</span>
                </div>
                <div>
                    <span>方案三：其他</span>
                </div>
                <div>
                    <span>备注：</span>
                    <div>${payService.remarks}</div>
                </div>
            </div>
        </div>
        <div style="text-align: center">
            @if(payService.isDo==5){
            <p style="margin: 10px;">以上方案，我同意按照第<input type="text" style="width: 15%">
                个方案。总计金额为：<input type="text" value="${payService.totalFoldingPay1}" style="width: 15%">元</p>
            @}
            @if(payService.isDo==4 || payService.isDo==3){
            <p style="margin: 10px;">以上方案，我同意按照第<input type="text" style="width: 15%">
                个方案。总计金额为：<input type="text" value="${payService.totleServiceActualPay1}" style="width: 15%">元</p>
            @}
            <p class="sign"><span style="width: 35%">本人确认签字：</span><span>家属确认签字：</span><span>日期：</span></p>
        </div>
    </div>
</div>
<!--endprint1-->
<div style="background: white;padding: 20px;position: absolute;top: 0;right: 2%" class="clearfix">
    <div style="text-align: center">
        <input id="preview" type="hidden" style="color: white;background:#30add1;width: 97px;height: 44px;" class="btn"
               name='button_export' title='打印1' onclick="preview(1)" value="点击打印">
    </div>
</div>
<script src="${ctxPath}/static/modular/tcCenter/consultant/distributive_singlePrint.js?v=20200628"></script>
@}